#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "ctype.h"


void changeCase(char *dest, char *name) {
    char *temp = name;//临时指针，只用操作临时指针
    while (*temp) {
        *dest = tolower(*temp);
        temp++;//挪动指针位置
        dest++;
    }
    *dest = '\0';
    printf("name = %s\n",name);

}

/**
 * 大小写转换
 * @return
 */
int main() {
    char arr[10];
    char *name = "Cyz";
    changeCase(arr, name);
    printf("转换之后的值是：%s", arr);
    return 0;
}